package com.example.hello.jdbcdao;

import com.example.hello.bean.User1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;

import java.util.List;
import java.util.Map;

public class UserDao {
    @Autowired
    private JdbcTemplate jdbcTemplate;
    public List<Map<String, Object>> sel(){
        return jdbcTemplate.queryForList("select * from user");
    }
}
